<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
    </ul>
    <div class="father" onclick="fatcherClick(this)">
        <div class="son"></div>
    </div>
</body>
<style>
    .father{
        width: 200px;
        height: 200px;
        background-color: brown;
    }
    .son{
        width: 100px;
        height: 100px;
        background-color: blue;
    }
</style>
<!-- <script src="./type.js"></script> -->
<!-- <script src="./es6新特性.js"></script> -->
<!-- <script src="./闭包.js"></script> -->
<script src="./args.js"></script>
<!-- <script src="./解析url.js"></script> -->
<!-- <script>
    const lis = document.querySelector('ul>li')
    const list = document.querySelectorAll('ul>li')
    // console.log(lis)
    lis.onclick = function(){
        console.log("this", this)
    }
    // lis.click()
    function fatcherClick(ta){
        console.log("fatherClick ", ta)
        console.log("fatherClick this ", this)
    }

    window.onload = function(){
       for(i = 0; i < list.length; i++){
           list[i].onclick = function(){
               setTimeout(()=>{
                   console.log("i this ", i , this)
               })
           }
       } 
    }

    class A{
        constructor(){
            this.a = 1
            this.b = 2
            this.c = 3
            this.f = function x(params) {
                console.log("i am strong")
            }
        }
        say(params) {
            console.log("hi")
        }
    }
    let a = new A()
    console.log(a)
</script> -->
</html>